package com.ssy.lingxi.platform.manage.api.feign.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.hystrix.inner.MaterialLibraryFeignControllerFallback;
import com.ssy.lingxi.platform.manage.api.hystrix.inner.PlatformParameterManageControllerFallback;
import com.ssy.lingxi.platform.manage.api.model.dto.material.MaterialFileInfoDTO;
import com.ssy.lingxi.platform.manage.api.model.dto.secret.CheckPasswordDTO;
import com.ssy.lingxi.platform.manage.api.model.vo.material.MaterialFileFeignVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * @menu 素材文件
 * @author xiechenhui
 * @version 2.0.0
 * @date 2022/03/31
 */
@FeignClient(value = "platform-manage-service", fallback = MaterialLibraryFeignControllerFallback.class)
public interface MaterialLibraryFeignController {

    /**
     * 查询素材库信息
     */
    @PostMapping("/manage/feign/material/library/findAllByMemberIdAndRoleId")
    Wrapper<List<MaterialFileFeignVO>> findAllByMemberIdAndRoleId(@Valid @RequestBody MaterialFileInfoDTO request);
}
